package com.book.settings.service.impl;

import com.book.exception.ServiceException;
import com.book.settings.mapper.LoginMapper;
import com.book.settings.pojo.Admin;
import com.book.settings.pojo.Login;
import com.book.settings.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("loginService")
public class LoginServiceImpl implements LoginService {

    @Autowired
    private LoginMapper loginMapper;
    @Override
    public Admin Login(Login login) {
        Admin admin = loginMapper.getAdmin(login.getAct(),login.getPwd());
        return admin;
    }
}
